<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>模版字符串</title>
</head>
<body>


<script type="text/javascript">

    /*var name = '小明';
    var age = 20;
    var message =  `你好, ${name}, 你今年${age}岁了!`;
    alert(message);*/

   /*  var arr = [[1, 2, 3], [400, 500, 600], '-'];
    console.log(arr[1][1]); */


    /*     let s = "This is string";
        console.log(`output: ${s}`);


        let obj = {
            a: 'foo',
            func: function () {
                console.log(this.a);
            }
        };

        console.log(`这就是 - ${typeof JSON.stringify(obj)}`); */

</script>

</body>
</html>